#pragma once
#include "createconnection.h"
#include "connection.h"
#include <QMainWindow>
#include <QMenu>
#include <QStatusBar>
#include <QSystemTrayIcon>
#include <QTabWidget>
#include <QTcpSocket>

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow();

private slots:
    void newStatusBarMsg(QString msg);
    void createNewConnection(QTcpSocket *socket);
    void removeTab(int tabNum);
    void trayActivated(QSystemTrayIcon::ActivationReason reason);

private:
    QSystemTrayIcon *trayIcon;
    QMenu *trayMenu;
    CreateConnection *createConnection;
    QTabWidget *tabWidget;
    QStatusBar *statusBar;
};
